package com.dongly;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by dongly on 17-3-18.
 */

@RestController
public class HelloController {

    @Autowired
    private StudentPreoperties studentPreoperties;

    @GetMapping(value = "/hello")
    public String hello() {
        System.out.println(11);
        return studentPreoperties.toString();
    }

}
